package com.hibernate; 
import com.hibernate.HistoricalData;
import org.hibernate.*; 
import org.hibernate.cfg.Configuration; 
 

public class TestClient 
{ 
        public static void main(String[] args)  
    { 
        SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); 
        Session session =sessionFactory.openSession(); 
        HistoricalData user1 = new HistoricalData(); 
        user1.setsymbol("MSFT");
        user1.setdate("2010-01-01");
        session.save(user1);
        
        
        session.flush(); 
    } 
} 